package youcaihuaoa.weetop.com.ui

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.robot.base.base.activity.GLBaseActivity
import com.robot.base.configs.AppConstants
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.BR
import youcaihuaoa.weetop.com.R
import youcaihuaoa.weetop.com.databinding.AppActivityBigImgBinding
import youcaihuaoa.weetop.com.vm.BigImgViewModel

@Route(path = AppConstants.Router.Main.A_BIG_IMG)
class BigImgActivity : GLBaseActivity<AppActivityBigImgBinding, BigImgViewModel>() {
    override fun initContentView(savedInstanceState: Bundle?): Int = R.layout.app_activity_big_img

    override fun initVariableId(): Int = BR.viewModel

    override fun initComponents() {
        addSingleTitleBar("")
        val imgUrl = intent.getStringExtra(AppConstants.BundleKey.IMG_URL)
        ImageLoaderUtils.display(this, binding.ivImg, imgUrl)
    }
}